<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../header.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>授权缴费单笔扣款</title>
<script src="${ctx}/js/jquery.min.js"></script>
<script type="text/javascript">
function valid(suform){
	var epayCode= suform.epayCode.value;
	if (null == epayCode || "" == epayCode) {
		alert("请输入缴费项目编号！");
		return false;
	}
	var merchantId= suform.merchantId.value;
	if (null == merchantId || "" == merchantId) {
		alert("请输入商户编号");
		return false;
	}
	var input1= suform.input1.value;
	if (null == input1 || "" == input1) {
		alert("请输入要素1");
		return false;
	}
	var billNo= suform.billNo.value;
	if (null == billNo || "" == billNo) {
		alert("请输入账单编号");
		return false;
	}
	var amount= suform.amount.value;
	if (null == amount || "" == amount) {
		alert("请输入缴费金额");
		return false;
	}
}
</script>
</head>
<body>
	<br><br><br><br><br><br>
	<center>
		<h2>授权缴费单笔扣款接口</h2>
		<h3>接口:${bridge }/jf-openapiweb/bridgeContract/contract</h3>
		<h3>交易码:AgentPay</h3><br>
		<form id="suform" onsubmit="return valid(this);" action='agentPay.do'  method="post" >
			<input type="hidden" name="trVersion" value="${param.trVersion }">
			<table>
				<tr>
					<td>缴费项目编号(epayCode)：</td>
					<td><input type="text" name="epayCode"/><font color="red">*必输</font></td>
				</tr>				
				<tr>
					<td>商户编号(merchantId)：</td>
					<td><input type="text" name="merchantId"/><font color="red">*必输</font></td>
				</tr>
				<tr>
					<td>输入要素1(input1)：</td>
					<td><input type="text" name="input1"/><font color="red">*必输</font></td>
				</tr>
				<tr>
					<td>输入要素2(input2)：</td>
					<td><input type="text" name="input2"/></td>
				</tr>
				<tr>
					<td>输入要素3(input3)：</td>
					<td><input type="text" name="input3"/></td>
				</tr>
				<tr>
					<td>输入要素4(input4)：</td>
					<td><input type="text" name="input4"/></td>
				</tr>
				<tr>
					<td>输入要素5(input5)：</td>
					<td><input type="text" name="input5"/></td>
				</tr>
				<tr>
					<td>账单编号(billNo)：</td>
					<td><input type="text" name="billNo"/><font color="red">*必输</font></td>
				</tr>
				<tr>
					<td>签约编号(agentSignNo)：</td>
					<td><input type="text" name="agentSignNo"/></td>
				</tr>				
				<tr>
					<td>缴费金额(amount)：</td>
					<td><input type="text" name="amount"/><font color="red">*必输</font></td>
				</tr>
				<tr>
					<td>收款方账号(receiveAccount)：</td>
					<td><input type="text" name="receiveAccount"/></td>
				</tr>				
				<tr>
					<td>分账交易模板号(splitAccTemplate)：</td>
					<td><input type="text" name="splitAccTemplate"/></td>
				</tr>																														
			</table>
			<input type="submit" value="提交"/> 
		</form>
	</center>
</body>
</html>